package com.ews.onlineexchange.service;

import javax.enterprise.context.ConversationScoped;
import javax.inject.Inject;
import javax.inject.Named;

import com.ews.onlineexchange.model.approved.ApprovedMatter;
import com.ews.onlineexchange.model.approved.EvidenceDefination;

@Named
@ConversationScoped
public class ApprovedMatterHome extends EntityHome<ApprovedMatter, String> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Inject
	private ApprovedClassHome approvedClassHome;
	
	private EvidenceDefination currentEvidenceDefination;

	@Override
	public String save() {
		getInstance().setApprovedClass(approvedClassHome.getInstance());
		return super.save();
	}

	public EvidenceDefination getCurrentEvidenceDefination() {
		return currentEvidenceDefination;
	}

	public void setCurrentEvidenceDefination(EvidenceDefination currentEvidenceDefination) {
		this.currentEvidenceDefination = currentEvidenceDefination;
	}

	public ApprovedClassHome getApprovedClassHome() {
		return approvedClassHome;
	}

	public void setApprovedClassHome(ApprovedClassHome approvedClassHome) {
		this.approvedClassHome = approvedClassHome;
	}

}
